using System;
using Sinacor.Servico.Bovespa.Ordens.BusinessEntity;
using Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Response;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
    public static class TranslateBetweenObservacaoAndObservacaoResponse
    {
        public static Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Observacao TranslateObservacaoResponseToObservacao(Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Response.ObservacaoResponse from)
        {
            Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Observacao to = new Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Observacao();
            to.Descricao = from.Descricao;
            return to;
        }

        public static Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Response.ObservacaoResponse TranslateObservacaoToObservacaoResponse(Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Observacao from)
        {
            Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Response.ObservacaoResponse to = new Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Response.ObservacaoResponse();
            to.Descricao = from.Descricao;
            return to;
        }
    }
}

